package cn.iocoder.yudao.module.fengdong.smartelderly.controller.admin.buyrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 购买记录 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class BuyRecordBaseVO {

    @Schema(description = "商品id", example = "154")
    private Long commodityId;

    @Schema(description = "订单号", example = "154")
    private String orderNumber;

    @Schema(description = "收件人名称", example = "154")
    private String name;

    @Schema(description = "手机号", example = "154")
    private String mobile;

    @Schema(description = "地区编号", example = "154")
    private Long areaId;

    @Schema(description = "地区名字", example = "154")
    private String areaName;

    @Schema(description = "收件详细地址", example = "154")
    private String detailAddress;

    @Schema(description = "老人姓名", example = "档案")
    private String oldmanName;

    @Schema(description = "老人身份证")
    private String oldmanCard;

    @Schema(description = "状态 ", example = "1")
    private Long status;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime endTime;

}
